<template>
	<view class="received">
		<comHead :isLeft="true" :isRight="false"></comHead>
		
		<view class="top">
			<view class="con">
				<image src="https://siha.vxmeng.com/static/index/finish.png" mode="heightFix"></image>
				<view class="text">
					<text>{{$t('index.lqcg')}}!</text>
					<text>{{$t('index.gxndzc')}}</text>
				</view>
			</view>
		</view>
		
		<view class="box">
			<image src="https://siha.vxmeng.com/static/index/box-bg.png" mode="widthFix"></image>
			<view class="money">
				<image :src="getImg('/static/index/dou.png')" mode="widthFix"></image>
				{{merchInfo.money}}
			</view>
			<view class="info">
				<text>{{$t('index.ddbh')}}：{{merchInfo.order_no}}</text>
				<text>{{$t('index.dhsj')}}：{{merchInfo.create_time}}</text>
				<text>{{$t('index.wxts')}}：{{$t('index.dhhzpbtbh')}}:)</text>
			</view>
		</view>
		
		<view @click="comLink('/pages/index/merchInfo?id='+user_order_id)" class="btn">{{$t('index.ddxq')}}</view>
		<view class="tip">{{$t('index.lqcgxqqndjddxq')}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				merchInfo: {},
				user_order_id:''
			}
		},
		onLoad(options) {
			this.user_order_id = options.id
			this.getUserOrderDetail()
		},
		methods: {
			async getUserOrderDetail(){
				const res = await this.$myRequest({
					url: 'api/order/getUserOrderDetail',
					data: {
						user_order_id:this.user_order_id
					}
				})
				if (res.code == 1) {
					this.merchInfo = res.data
				}
			},
		}
	}
</script>

<style lang="less" scoped>
	.received{
		height: 100vh;
		color: #fff;
		.top{
			height: 120rpx;
			display: flex;
			justify-content: center;
			.con{
				height: 100%;
				display: flex;
				justify-content: center;
				image{
					height: 120rpx;
					margin-right: 30rpx;
				}
				.text{
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					font-size: 28rpx;
					text{
						&:first-child{
							font-size: 40rpx;
							margin-bottom: 10rpx;
						}
					}
				}
			}
		}
		.box{
			width: 686rpx;
			margin: 70rpx auto 0;
			position: relative;
			padding: 30rpx 60rpx;
			image{
				width: 100%;
				position: absolute;
				top: 0;
				left: 0;
				z-index: -1;
			}
			.money{
				width: 300rpx;
				text-align: center;
				font-size: 48rpx;
				margin: 30rpx auto;
				image{
					width: 60rpx;
					position: static;
					vertical-align: middle;
				}
			}
			.info{
				height: 320rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-evenly;
				text{
					font-size: 28rpx;
				}
			}
		}
		.btn{
			width: 380rpx;
			height: 72rpx;
			border-radius: 36rpx;
			background: linear-gradient(279deg, #62B6FC 0%, #5F58FD 77%, #5F58FD 99%);
			text-align: center;
			line-height: 72rpx;
			margin: 80rpx auto 0;
		}
		.tip{
			text-align: center;
			margin-top: 26rpx;
			font-size: 24rpx;
		}
	}
</style>

